package com.huizhe.modules.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huizhe.core.config.datasource.DataSource;
import com.huizhe.core.config.datasource.DataSourceEnum;
import com.huizhe.modules.entity.Student;
import com.huizhe.modules.mapper.StudentMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService extends ServiceImpl<StudentMapper, Student> implements IService<Student> {

    @DataSource(DataSourceEnum.DB1)
    public List<Student> selectList() {
        return super.list();
    }
}
